import request from "@/utils/request"
// export  function saveFile(data) { //上传多个图片加文件信息
//     return request({
//         url: `/tool/fileManage/saveFile`,
//         method: "post",
//         data:data
//     })
// }   
// export  function getContractType(params) { //获取分页，文档类别
//     return request({
//         url: `/base/contractType/list`,
//         method: "get",
//         params
//     })
// }
export  function getToolFileImageApi(params) { //获取详情图片
    return request({
        url: `/tool/fileManage/getFileImage`,
        method: "get",
        params
    })
}
export  function  editContract(data) { //修改文件
    return request({
        url: `/tool/fileManage/edit`,
        method: "put",
        data
    })
} 
export  function  getCommentList(params) { //获取评论
    return request({
        url: `tool/fileComment/list`,
        method: "get",
        params
    })
} 
export  function  addComment(data) { //获取评论
    return request({
        url: `/tool/fileComment/add`,
        method: "post",
        data
    })
} 
export  function  getShareList(params) { //获取已分享列表
    return request({
        url: `tool/fileManage/listFileSharer`,
        method: "get",
        params
    })
} 
export  function  getSharePerson(params) { //获取已分享列表
    return request({
        url: `tool/fileManage/listCircleStaff`,
        method: "get",
        params
    })
} 
export  function  addFileShare(params) { //新增分享者
    return request({
        url: `tool/fileManage/addFileSharer`,
        method: "post",
        params
    })
} 
export  function  deleteShare(params) { //新增分享者
    return request({
        url: `tool/fileManage/delFileSharer`,
        method: "DELETE",
        params
    })
} 
export  function  getShareRecordList(params) { //获取外享记录
    return request({
        url: `tool/shareRecord/list`,
        method: "get",
        params
    })
} 
export  function  getMembersInfo(params) { //获取用户信息
    return request({
        url: `doc/orderMeet/getMembersInfo`,
        method: "get",
        params
    })
} 
export  function  sendShareFileMail(params) { //发送电邮
    return request({
        url: `doc/mail/sendShareFileMail`,
        method: "get",
        params
    })
} 
export  function  addShareEmail(data) { //告诉后台添加记录信息
    return request({
        url: `tool/shareRecord/add`,
        method: "post",
        data
    })
} 